package com.xudow.app.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.activeshare.edu.ucenter.models.base.ShoppingCart;
import com.activeshare.edu.ucenter.models.cart.ShoppingCartWithCourse;
import com.xudow.app.R;
import com.xudow.app.ui.adapter.ShoppingCartAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * 购物车（课兜兜）Activity
 *
 * @author lukecheng
 */
public class ShoppingCartActivity extends BaseActivity {

    private List<ShoppingCartWithCourse> items;

    private ListView itemListView;
    private ShoppingCartAdapter shoppingCartAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shopping_cart);

        itemListView = (ListView) findViewById(R.id.items);

        items = new ArrayList<ShoppingCartWithCourse>();
        items.add(new ShoppingCartWithCourse());

        shoppingCartAdapter = new ShoppingCartAdapter(this, R.layout.item_shopping_cart_list, items);
        //itemListView.setAdapter(shoppingCartAdapter);
    }

    public void onBackBtnClick(View view) {
        finish();
    }

}
